home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c++-part2 / 16358 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  658 b 

  1. Path: nntp-trd.UNINETT.no!usenet
  2. From: Roy Arild J|rgensen <rjorgens@krs.hia.no>
  3. Newsgroups: comp.lang.c++
  4. Subject: I/O from LPT1 or COM1 in c++. HOW?
  5. Date: Wed, 10 Apr 1996 17:03:36 +0200
  6. Organization: UNINETT news service    
  7. Message-ID: <316BCDC8.8B0@krs.hia.no>
  8. NNTP-Posting-Host: terne.krs.hia.no
  9. Mime-Version: 1.0
  10. Content-Type: text/plain; charset=us-ascii
  11. Content-Transfer-Encoding: 7bit
  12. X-Mailer: Mozilla 2.0 (X11; I; SunOS 5.3 sun4m)
  13.  
  14. Is there a easy way to get I/O (one switch = 0 or 1) from LPT1 or COM1,
  15. and use it in a C++ program. 
  16.  
  17. I need a code or a hint, and how to connect the switch to the port.
  18.  
  19. (Please mail me a copy of your answer!)
  20.  
  21. Roy
  22.